
package com.be.beadmin.project.repository;

import com.be.beadmin.project.entity.ProductTotalInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zjm
* @date 2023-02-14
**/
public interface ProductTotalInfoRepository extends JpaRepository<ProductTotalInfo, String>, JpaSpecificationExecutor<ProductTotalInfo> {

    ProductTotalInfo findProductTotalInfoByIdAndDelete(String id, Integer delete);

    ProductTotalInfo findProductTotalInfoById(String id);

    List<ProductTotalInfo> findProductTotalInfoByInfoIdAndDelete(String infoId, int delete);

    ProductTotalInfo findProductTotalInfoByProductTypeAndIsStandardAndInfoIdAndDelete(String productType, Integer isStandard,String infoid,Integer delete);

//    List<ProductTotalInfo> findProductTotalInfoByInfoIdAndDelete(String infoId, int delete);
}